<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    
    <h:head>
        <title>Facelet Title</title>
        <h:outputStylesheet library="css" name="jsfcrud.css"/>
    </h:head>
    <h:body>
        <h2>Link user</h2>
        <h:form>
            <h:commandLink action="#{topicController.prepareListToUser()}" value="Show all Topic">
            </h:commandLink>
        </h:form>
    </h:body>
    <ui:composition template="/admintemplate.xhtml">
        <ui:define name="title">
            Facelet Title
        </ui:define>
        <ui:define name="leftmenu">
            <h:form>
                <ul class="section menu">
                    <li><a class="menuitem">#{bundle.ControlPanelMenu}</a>
                        <ul class="submenu">
                            <li><h:commandLink action="#{classesController.prepareCreate}" value="#{bundle.ListClassesCreateLink}"/> </li>
                            <li><h:commandLink action="#{classesController.prepareList}" value="#{bundle.CreateClassesShowAllLink}" immediate="true"/> </li>
                        </ul>
                    </li>
                </ul>
            </h:form>
        </ui:define>
        <ui:define name="content">
            <h2>Welcome to Admin Management</h2>
            <div class="block">
                Welcome to Admin Management!
            </div>
        </ui:define>
    </ui:composition>

</html>
